# cmake build file

PROJECT(Rotating3DScanner)

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

# header and module list

IF(APPLE)
   INCLUDE_DIRECTORIES ( /System/Library/Frameworks )
   FIND_LIBRARY(COCOA_LIBRARY Cocoa)
   FIND_LIBRARY(GLUT_LIBRARY GLUT )
   FIND_LIBRARY(OpenGL_LIBRARY OpenGL )
   MARK_AS_ADVANCED (COCOA_LIBRARY
                     GLUT_LIBRARY
                     OpenGL_LIBRARY)
   SET(EXTRA_LIBS ${COCOA_LIBRARY} ${GLUT_LIBRARY} ${OpenGL_LIBRARY})
ENDIF (APPLE)


#SET(LIB_HDRS
#   module.h
#   )

#SET(LIB_SRCS
#   module.c
#   )

# library

#SET(LIB_NAME ${PROJECT_NAME})

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

#ADD_LIBRARY(${LIB_NAME} ${LIB_SRCS} ${LIB_HDRS})

# executable

ADD_EXECUTABLE(cppview cppview.cpp)
TARGET_LINK_LIBRARIES(cppview
   #${LIB_NAME}
   freenect ${EXTRA_LIBS}
   )
